﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace iLangl.Transport
{
	/// <summary>
	/// Fault that is returned by the service when invalid value is passed as an argument
	/// </summary>
	[DataContract(Namespace = "http://ilangl.com")]
	public class InvalidArgumentFault
	{

		/// <summary>
		/// Name of the invalid argument.
		/// </summary>
		[DataMember]
		public String ArgumentName
		{
			get;
			set;
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="InvalidArgumentFault"/> class.
		/// </summary>
		/// <param name="argumentName">Name of the invalid argument.</param>
		public InvalidArgumentFault(String argumentName)
		{
			this.ArgumentName = argumentName;
		}
	}
}
